<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<center>
    <table border="1px" cellpadding="10px" cellspacing="0px">
        <thead><h3>用户列表：</h3></thead>
        <tr>
            <th>ID</th>
            <th>用户姓名</th>
            <th>用户密码</th>
            <th>用户性别</th>
            <th>语言特长</th>
            <th>所在城市</th>
            <th>操作</th>
        </tr>

        <c:forEach items="${lists}" var="user">
            <tr>
                <td>${user.id}</td>
                <td>${user.username}</td>
                <td>${user.password}</td>
                <td>${user.sex}</td>
                <td>${user.language}</td>
                <td>${user.city}</td>
                <td>
                    <p><a href="${pageContext.servletContext.contextPath}/user/update_page.do?id=${user.id}&username=${user.username}">修改</a></p>
                    <p><a href="${pageContext.servletContext.contextPath}/user/delete_user.do?id=${user.id}">删除</a></p>
                </td>
            </tr>
        </c:forEach>
    </table>
</center>
</body>
</html>
